<template>
	<view class="container">
		<!-- 标题 -->
		<view class="title">{{info.noticeTitle}}</view>
		<view class="pushTime">发布时间：{{$u.timeFormat(info.updateTime, 'yyyy-mm-dd hh:MM')}}</view>
		<u-parse :html="info.noticeContent"></u-parse>
	</view>
</template>

<script>
	export default{
		data(){
			return {
				info:{}
			}
		},
		onLoad(e) {
			this.info=uni.getStorageSync("news")
			console.log(this.info)
		},
		onUnload() {
			uni.removeStorageSync("news")
		}
	}
</script>

<style>
	page{
		background: #F5F5F5;
	}
	.container{
		padding: 30rpx;
	}
	.title{
		width: 690rpx;
		font-size: 32rpx;
		font-weight: bold;
		color: #333333;
		text-align: center;
	}
	.pushTime{
		width: 690rpx;
		text-align: right;
		margin-top: 10rpx;
		font-size: 22rpx;
		color: #999999;
	}
</style>
